package org.NooLab.glue.net.http.rest;

import org.NooLab.glue.components.pkg.DataDeliveryPackage;
import org.NooLab.glue.components.pkg.DataDeliveryPackageIntf;

 
 

public class RestletBoxProperties implements RestletBoxPropertiesIntf {

	static public int ARNG_LOCALNET=2;
	static public int ARNG_DISTRIBUTED=3;
	
	int arrangement = ARNG_LOCALNET;
	
	int duplexMode = 2 ; // 1=half (only client OR only server), 2=full (always server AND client) 
	
	String serverAddress="" ;
	int  listeningPort  = 0;
	int portAliasForSources = 0, 
		portAliasForReceptors = 0,
		portAliasForIBoard = 0;
	
	String boxUserName = "noolab";
	String boxUserPwd  = "glue" ;
	String boxUserDir  = "messageboard" ;
	
	int loggingLevelAlias = 0;
	
	DataDeliveryPackageIntf restDeliveryPackage;
	
	GlueRestletHandlerIntf restDataEndpoint ;

	
	public RestletBoxProperties(){
		listeningPort = 8084 ;
		
	}


	public int getArrangement() {
		return arrangement;
	}


	public void setArrangement(int arrangement) {
		this.arrangement = arrangement;
	}


	public String getServerAddress() {
		return serverAddress;
	}


	public void setServerAddress(String serverAddress) {
		this.serverAddress = serverAddress;
	}


	public int getListeningPort() {
		return listeningPort;
	}


	 
	@Override
	public void setListeningPort(int port) {
		this.listeningPort  = port;
	}	


	@Override
	public void setPortAliasForSources(int port) {
		 
		portAliasForSources = port ;
	}


	@Override
	public int getPortAliasForSources() {
		 
		return portAliasForSources;
	}


	@Override
	public void setPortAliasForReceptors(int port) {
		 
		portAliasForReceptors = port ;
	}


	@Override
	public int getPortAliasForReceptors() {
		
		return portAliasForReceptors;
	}


	@Override
	public void setPortAliasForIBoard(int port) {
		 
		portAliasForIBoard = port ;
	}


	@Override
	public int getPortAliasForIBoard() {
		 
		return portAliasForIBoard;
	}


	public String getBoxUserName() {
		return boxUserName;
	}


	public void setBoxUserName(String boxUserName) {
		this.boxUserName = boxUserName;
	}


	public String getBoxUserPwd() {
		return boxUserPwd;
	}


	public void setBoxUserPwd(String boxUserPwd) {
		this.boxUserPwd = boxUserPwd;
	}


	public String getBoxUserDir() {
		return boxUserDir;
	}


	public void setBoxUserDir(String boxUserDir) {
		this.boxUserDir = boxUserDir;
	}


	public int getLoggingLevelAlias() {
		return loggingLevelAlias;
	}


	public void setLoggingLevelAlias(int loggingLevelAlias) {
		this.loggingLevelAlias = loggingLevelAlias;
	}

 


	public GlueRestletHandlerIntf getRestDataEndpoint() {
		return restDataEndpoint;
	}


	public void setRestDataEndpoint(GlueRestletHandlerIntf restDataEndpoint) {
		this.restDataEndpoint = restDataEndpoint;
	}

	
	public DataDeliveryPackageIntf getRestDeliveryPackage() {
		return restDeliveryPackage;
	}

	@Override
	public void setRestDeliveryPackage(DataDeliveryPackage restDeliveryPkg) {
	 
		this.restDeliveryPackage = restDeliveryPkg;
	}




 


}
	
	
	
 